package main

// TODO : 此文件最后为 Tiny_GO, 测试阶段暂定为 main

import (
	"github.com/17683954109/Tiny_GO/core"
	"github.com/17683954109/Tiny_GO/router"
)

func main() {
	router.Get("/", func(w router.Writer, r router.Request) {
		tiny.String("Hello", w)
	})
	router.Get("/admin", func(w router.Writer, r router.Request) {
		tiny.String("Hello. Admin", w)
	})
	router.Post("/post", func(w router.Writer, r router.Request) {
		tiny.String("Hello Post", w)
	})
	tiny.Run(":8888")
}
